home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / send.zip / PRINTDEM.BAT < prev    next >
DOS Batch File  |  1985-10-17  |  4KB  |  86 lines

  1. echo off
  2. send $e[33;44;1m
  3. send $e[2J
  4. rem    The first send line sets colors if you have a color monitor; the second
  5. rem    is an ANSI.SYS clear screen 
  6. send $_$_$_$_   
  7. send $_      SEND is an ideal vehicle for sending control codes to your
  8. send $_   printer.   Such control codes are specific to brand and even model
  9. send $_   of printer.  If your printer is not an IBM graphics printer or 
  10. send $_   compatible, you can still use SEND to send control codes to it but
  11. send $_   you cannot use this demonstration file to illustrate how things work.
  12. send $_   Please carefully strike $lCtrl Break$g to cancel this demonstration
  13. :       Notice we couldn't use < and > which would have been interpreted as
  14. rem     redirection commands and used $l and $g instead.  This is not a 
  15. rem     feature of SEND but of DOS; If the line starting "Notice" had said
  16. :       "rem" at the beginning, the > and < would also have been misinterpreted!
  17. rem     However, unused labels (lines beginning with :) in batch files are 
  18. rem     ignored by DOS.
  19. send $_   if your printer is not IBM Graphics compatible.$_
  20. send $_        If you have the right kind of printer, please make sure that
  21. send $_   the paper is properly aligned and that your printer is turned on.
  22. send $_   Then...
  23. rem    We next move the cursor to line 22 to place the pause message
  24. send $e[22;5H
  25. pause
  26. send $e[2J
  27. send $_$_$_$_$_   This PRINTER DEMONSTRATION is presented by the makers of
  28. send $_$_$_$_>prn
  29. send $    You can send a command to skip lines with SEND$_$_$_>prn
  30. send $e[36m$e[11;1H
  31. send $     ██████$_
  32. send $     █$_
  33. send $     ██████$_
  34. send $          █$_
  35. send $     ██████$_
  36. send $    You can print ^Ocompressed^R and ^Ndouble width^T with SEND$_$_$_>prn
  37. send $e[0m$e[30;44m
  38. send $e[11;15H██████
  39. send $e[12;15H█
  40. send $e[13;15H██████
  41. send $e[14;15H█
  42. send $e[15;15H██████
  43. send $    You can $e-1underline$e-0, $eS1subscript$eT, >prn
  44. send $eS0superscript$eT$_$_>prn
  45. rem Lines can be split in the middle without sending a CR-LF
  46. send $e[31m
  47. send $e[11;24H██   █
  48. send $e[12;24H███  █
  49. send $e[13;24H█ ██ █
  50. send $e[14;24H█  ███
  51. send $e[15;24H█   ██
  52. send $    You can print double strike, emphasized or bold$_>prn
  53. send $      $eGhello$eH  double strike$_>prn
  54. send $      $eEhello$eF  emphasized$_>prn
  55. send $      $eG$eEhello$eF$eH  bold = double strike and emphasized$_$_>prn
  56. send $e[35m
  57. send $e[11;33H██████
  58. send $e[12;33H█    ██
  59. send $e[13;33H█    ██
  60. send $e[14;33H█    ██
  61. send $e[15;33H██████$_$e[1;33;44m$e[20;5H
  62. send $    Bold is so nice that we included a batch file to boldprint$_>prn
  63. pause
  64. send $      We will issue the command "boldprn trial.txt"$_>prn
  65. command/c boldprn trial.txt
  66. send $e[2J$e[10;5H
  67. send The noises you are about to hear are part of the demonstration.$_
  68. send $         DON'T  WORRY$_
  69. send ^G^G^G
  70. send ^G^G^G      That woke you up! SEND can send a command to buzz to$_>prn
  71. send $              your computer or your printer.$_>prn
  72. send $      SEND can also fill in the date today:$_>prn
  73. send $           Its $d$_$_>prn
  74. send $      And SEND can eject a page!^L>prn
  75. send $_$_     If you have a print spooler, your printer wi
  76. send ll buzz after you think$_
  77. send $      the demonstration has ended; it's only part of the demonstration!
  78. rem  WARNING: The IBM Graphics printer won't backspace and so it will 
  79. rem     ignore any $h or ^h sent to it.
  80. rem  WARNING: Many printers, the IBM graphics printer included, don't print
  81. rem     until they get a line feed or control character.  Thus "send hello
  82. :       >prn" issued at the command line will have no effect until a 
  83. rem     line feed is sent later and you may be surprized to find a "hello"
  84. :       where you didn't expect.  Use "send hello$_>prn" instead.
  85. 
  86.